Chemicals that bind to and remove ions from solutions. Many chelating agents function through the formation of coordination complexes with metals.